package com.weijian.service;

import com.weijian.dto.ChunkUploadRequest;
import com.weijian.dto.CompleteUploadRequest;
import com.weijian.dto.InitUploadRequest;
import com.weijian.entity.VideoInfo;

import java.util.List;

/**
 * 分片上传Service接口
 */
public interface ChunkUploadService {
    
    /**
     * 初始化上传任务
     */
    Object initUpload(InitUploadRequest request);
    
    /**
     * 上传分片
     */
    Object uploadChunk(ChunkUploadRequest request);
    
    /**
     * 完成上传
     */
    VideoInfo completeUpload(CompleteUploadRequest request);
    
    /**
     * 获取已上传的分片列表
     */
    List<Integer> getUploadedChunks(String taskId);
}